import React from 'react';
import { Form } from 'antd';
import { AxInput, AxSelectEnum, AxSelectSearch } from '@/components/AxForm/AxFormItem';
import { AxAdvancedSearchDrawer } from '@/components/AxForm/AxSearchForm/AxAdvancedSearchDrawer';

const Search: React.FC<any> = props => {
  const { form, values = {}, ...rest } = props;

  return (
    <AxAdvancedSearchDrawer
      form={form}
      {...rest}
    >
      <AxInput
        form={form}
        label="项目经费名称"
        field="name"
        value={values.name}
        wholerow="none"
      />
      <AxInput
        form={form}
        label="经费本编号"
        field="noteNumber"
        value={values.noteNumber}
        wholerow="none"
      />
      <AxSelectEnum
        form={form}
        label="项目经费类型"
        field="itmeType"
        enumName='itmeType'
        value={values.itmeType}
        wholerow="none"
      />
    </AxAdvancedSearchDrawer>
  );
};

export default Form.create<any>()(Search);
